package Sdo.pojo;

import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.scene.image.ImageView;

public class History {
	
	   private final SimpleIntegerProperty id;
	   private final SimpleStringProperty name;
	   private final SimpleStringProperty ip;
	 
	   private ImageView image;
	   
	   private  final SimpleIntegerProperty port;
	   private final SimpleStringProperty username;
	   private final SimpleStringProperty password;
	   private final SimpleStringProperty pkey;
	   
	   
	   private final SimpleStringProperty proxyType;
	   
	   private final SimpleStringProperty proxyIp;
	   private final SimpleStringProperty proxyPort;
	   private final SimpleStringProperty proxyUser;
	   private final SimpleStringProperty proxyPassword;
	   
	   
	   
	   
	   
	   public History(Integer id, String name,String ip, Integer port, String username, String password,String pkey,
			   String proxyType,String proxyIp,String proxyPort,String proxyUser,String proxyPassword,ImageView image) {
			this.id = new SimpleIntegerProperty(id);
			this.name = new SimpleStringProperty(name);
			
			this.ip = new SimpleStringProperty(ip);
			this.port = new SimpleIntegerProperty(port);
			this.username = new SimpleStringProperty(username);
			this.password = new SimpleStringProperty(password);
			this.pkey=new SimpleStringProperty(pkey);
			this.proxyType=new SimpleStringProperty(proxyType);
			this.proxyIp=new SimpleStringProperty(proxyIp);
			this.proxyPort=new SimpleStringProperty(proxyPort);
			this.proxyUser=new SimpleStringProperty(proxyUser);
			this.proxyPassword=new SimpleStringProperty(proxyPassword);
			
			this.image=image;
			
			
		}
	   public void setImage(ImageView value) {
	        image = value;
	    }

	    public ImageView getImage() {
	        return image;
	    }
	  
	    
	  
		
	public final SimpleIntegerProperty idProperty() {
		return this.id;
	}
	
	public final int getId() {
		return this.idProperty().get();
	}
	
	public final void setId(final int id) {
		this.idProperty().set(id);
	}
	
	public final SimpleStringProperty nameProperty() {
		return this.name;
	}
	
	public final String getName() {
		return this.nameProperty().get();
	}
	
	public final void setName(final String name) {
		this.nameProperty().set(name);
	}
	
	public final SimpleStringProperty ipProperty() {
		return this.ip;
	}
	
	public final String getIp() {
		return this.ipProperty().get();
	}
	
	public final void setIp(final String ip) {
		this.ipProperty().set(ip);
	}
	
	public final SimpleIntegerProperty portProperty() {
		return this.port;
	}
	
	public final int getPort() {
		return this.portProperty().get();
	}
	
	public final void setPort(final int port) {
		this.portProperty().set(port);
	}
	
	public final SimpleStringProperty usernameProperty() {
		return this.username;
	}
	
	public final String getUsername() {
		return this.usernameProperty().get();
	}
	
	public final void setUsername(final String username) {
		this.usernameProperty().set(username);
	}
	
	public final SimpleStringProperty passwordProperty() {
		return this.password;
	}
	
	public final String getPassword() {
		return this.passwordProperty().get();
	}
	
	public final void setPassword(final String password) {
		this.passwordProperty().set(password);
	}

	public final SimpleStringProperty pkeyProperty() {
		return this.pkey;
	}
	

	public final String getPkey() {
		return this.pkeyProperty().get();
	}
	

	public final void setPkey(final String pkey) {
		this.pkeyProperty().set(pkey);
	}

	public final SimpleStringProperty proxyIpProperty() {
		return this.proxyIp;
	}
	

	public final String getProxyIp() {
		return this.proxyIpProperty().get();
	}
	

	public final void setProxyIp(final String proxyIp) {
		this.proxyIpProperty().set(proxyIp);
	}
	

	public final SimpleStringProperty proxyPortProperty() {
		return this.proxyPort;
	}
	

	public final String getProxyPort() {
		return this.proxyPortProperty().get();
	}
	

	public final void setProxyPort(final String proxyPort) {
		this.proxyPortProperty().set(proxyPort);
	}
	

	public final SimpleStringProperty proxyUserProperty() {
		return this.proxyUser;
	}
	

	public final String getProxyUser() {
		return this.proxyUserProperty().get();
	}
	

	public final void setProxyUser(final String proxyUser) {
		this.proxyUserProperty().set(proxyUser);
	}
	

	public final SimpleStringProperty proxyPasswordProperty() {
		return this.proxyPassword;
	}
	

	public final String getProxyPassword() {
		return this.proxyPasswordProperty().get();
	}
	

	public final void setProxyPassword(final String proxyPassword) {
		this.proxyPasswordProperty().set(proxyPassword);
	}

	public final SimpleStringProperty proxyTypeProperty() {
		return this.proxyType;
	}
	

	public final String getProxyType() {
		return this.proxyTypeProperty().get();
	}
	

	public final void setProxyType(final String proxyType) {
		this.proxyTypeProperty().set(proxyType);
	}
	
	
	

	
	
	  


}
